<script type="text/javascript">
	$(document).ready(function(){
		parent.showButton("save,back");
	}); 
	function doButton(btn){
		if(btn == 'save'){
	    	$.post("__URL__/index_act/act/{$act}/", $("#form").serialize(),function(data){
    			eval("var dataJ = " + data);
				if(dataJ.success == 1){
					alert("编辑成功");
					location.href="__URL__/index";
				}else if(dataJ.message != ''){
					alert(dataJ.message);
				}else{
					alert("编辑失败");
				}
    		});
		}else if(btn == "back"){
	        location.href = "__URL__/index/";
		}
	}
</script>
  <div class="content" style="min-height:50px;">
    <form action="__URL__/index_act/act/{$act}/" method="post" enctype="multipart/form-data" id="form">
    <input type="hidden" name="act" id="act" value="{$act}" />
    <input type="hidden" name="id" value="{$info.id}" />
      <table class="form">
        <tr>
          <td><span class="required">*</span>职位：</td>
          <td><input type="text" name="name" value="{$info.name}"></td>
        </tr>
      </table>
    </form>
  </div>